package org.exercise.schedule;

import java.util.Date;
import java.util.TimerTask;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/10/6 22:49
 */
public interface Schedule {

    void schedule(TimerTask command, long delay);

    void scheduleAtFixedRate(TimerTask command, Date firstTime, long period);

    void stop();

}
